package com.example.eurekaswaggera.controller;

import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

@RestController
public class HelloController {

    @ApiIgnore
    @RequestMapping(value = "/hello1", method = RequestMethod.GET)
    public String index() {
        return "Hello World";
    }

    @ApiOperation(value="正常返回", notes="")
    @RequestMapping(value="/hello", method=RequestMethod.GET)
    public String hello() {
        return "Hello World";
    }
}
